Readme for "Balanced messaging about solar geoengineering does not reduce average support for emissions reductions"


## Instructions for reproducing analysis

To run the code for all computations in the paper (and output Figures 2-5), simply run _master.R. 


## Details on files in replication package

- _master.R: reproduces the entire pipeline from raw data to finished paper.
  - Inputs:
    - ssi3_2024_construct_analysis_data.qmd (generates analysis dataset)
    - ssi_2024_final_paper_v4_JEPS_revision2.R (runs code in final paper)
  
- ssi3_2024_construct_analysis_data.qmd. This converts the raw data from Qualtrics and CloudResearch Connect into an analysis data file. It was substantially written into the pre-analysis plan.
  - Inputs: 
    - data/SSI3+2024+SRM+Version+4_April+30,+2024_20.52.csv, the raw survey response data from Qualtrics
    - assignments_3c2b52ff-7586-4809-874c-dd4df3f210e8.csv, the raw respondent characteristics data from CloudResearch Connect
  - Outputs:
    - data/D_and_D_post_exclusions_v2.RData: the analysis data file [We provide this in the replication package in case someone wants to skip running ssi3_2024_construct_analysis_data.qmd]
    - data/approvals.csv and data/rejections_for_speeders.csv, which indicate which respondents to approve and which should be rejected for speeding
    
- ssi_2024_final_paper_v4_JEPS_revision2.R
  - Inputs: 
    - data/D_and_D_post_exclusions_v2.RData: the analysis data file
    - packages.tex, tabulararray.sty, agsm.bst (LaTeX inputs)
    - sai.bib: bibliography
  - Outputs:
    - in output/, all of the pdf figures in the final paper

- ssi_2024_final_paper_v4_JEPS_revision2.qmd: contains the text and code to produce the final paper. I have not included the style files for formatting etc, so these will need to be downloaded if you want to compile the paper, but the file provides all detail about e.g. how in-line numbers are computed. 

(The reason I am providing the R file separately from the qmd file is that the replication assistant ran into trouble compiling the qmd file.) 
    
## Software requirements

The code was run on R 4.4.0.

R packages used: 

tidyverse
knitr
estimatr
modelsummary
tinytable
survey
broom
quarto


